package com.liao.dao;

import com.liao.bean.News;

import java.util.List;

public interface NewsDao {
    /**
     *根据新闻标题查询新闻列表
     * @param newsTitle
     * @return
     * @throws Exception
     */
    List<News> selectNewsListLikeNewsName(String newsTitle) throws Exception;

    /**
     * 添加会员
     * @param news
     * @throws Exception
     */
    void addNews(News news) throws Exception;

    /**
     * 修改会员
     * @param news
     * @throws Exception
     */
    void updateNews(News news) throws Exception;

    /**
     * 根据id删除会员
     * @param newsId
     * @throws Exception
     */
    void deleteNews(String newsId) throws Exception;
}
